#ifndef		__RTC_H
#define		__RTC_H

#include "I2C.h"
#include "GPIO.h"
#include "UART.h"
#include "NVIC.h"
#include "Switch.h"

typedef struct {
    u8 second, minute, hour, day, month,  week;
    u16 year;
} RTC_Time;

void init();
void Read_RTC(RTC_Time *date);
void Write_RTC(RTC_Time *date);
#endif